export enum AUDIT_STATUS {
  PENDING = 'PENDING',
  AUTO_APPROVED = 'AUTO_APPROVED',
  MANUAL_REVIEWING = 'MANUAL_REVIEWING',
  APPROVED = 'APPROVED',
  REJECTED = 'REJECTED',
  DELETED = 'DELETED',
  NEEDS_REVISION = 'NEEDS_REVISION'
}

export const AUDIT_STATUS_LIST = [
  {
    value: AUDIT_STATUS.PENDING,
    label: '待审核'
  },
  {
    value: AUDIT_STATUS.AUTO_APPROVED,
    label: '自动审核通过'
  },
  {
    value: AUDIT_STATUS.MANUAL_REVIEWING,
    label: '人工复审中'
  },
  {
    value: AUDIT_STATUS.APPROVED,
    label: '审核通过'
  },
  {
    value: AUDIT_STATUS.REJECTED,
    label: '审核拒绝'
  },
  {
    value: AUDIT_STATUS.DELETED,
    label: '已删除'
  },
  {
    value: AUDIT_STATUS.NEEDS_REVISION,
    label: '需要修改'
  }
];

export const AUDIT_STATUS_MAP = AUDIT_STATUS_LIST.reduce((acc, item) => {
  acc[item.value] = item;
  return acc;
}, {});
